package com.yztc.youbadbad.ui.other.activity;


import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.yztc.youbadbad.App;
import com.yztc.youbadbad.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 快速登录
 */
public class QuickFragment extends Fragment {

    @BindView(R.id.imageview_qq)
    ImageView imageviewQq;
    @BindView(R.id.imageview_weibo)
    ImageView imageviewWeibo;
    @BindView(R.id.imageview_weixin)
    ImageView imageviewWeixin;
    private Context mContext = App.app;



    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_quick, container, false);
        ButterKnife.bind(this, view);
        return view;
//        return super.onCreateView(inflater,container,savedInstanceState);

    }

    @OnClick({R.id.textView_register, R.id.textView_psw, R.id.imageview_qq, R.id.imageview_weibo, R.id.imageview_weixin})
    public void onClick(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.textView_register:
                intent.setClass(mContext, RegisterActivity.class);
                startActivity(intent);
                break;
            case R.id.textView_psw:
                intent.setClass(mContext, ForgetPswActivity.class);
                startActivity(intent);
                break;

        }
    }



}
